<template>
  <div class="brand">
    <img class="logoImg" :src="walletLogo" alt="BlockWatch Logo" title="BlockWatch"
      @click="navigationIndex" style="cursor: pointer;">
    <p>
      Copyright &copy;  2024 BlockWatch
    </p>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";
// 导入图片，img 标签可以动态使用
import { walletLogo } from "@/utils/imgUrl.js";
const router = useRouter();

const navigationIndex = () => {
  window.scrollTo(0, 0);
  router.push({ name: 'index' })
};
</script>

<style lang="less" scoped>
.brand {
  img {
    width: 1.5rem;
  }
}
</style>